toToolkit

public static Image toToolkit(Bitmap bitmap)

Creates and returns an instance of Image obtained from the given bitmap. The image will have the same width and height as the bitmap.

Parameters

bitmap

the bitmap used to obtain Image

Throws

when the given bitmap size is empty